XM/XenAPI: Add blktap support when creating domains by xm through Xen API.
authorKeir Fraser <keir.fraser@citrix.com>
Tue, 13 May 2008 08:48:40 +0000 (09:48 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Tue, 13 May 2008 08:48:40 +0000 (09:48 +0100)
Signed-off-by: Yosuke Iwamatsu <y-iwamatsu@ab.jp.nec.com>
tools/python/xen/xm/xenapi_create.py

index 11ccaed665c33f5cf9e5c2f5abccf0f79b9a2585..7c45564461997d9f654e66cf900f0cdc7f926e23 100644 (file)
@@ -509,7 +509,7 @@ class sxp2xml:
                    if len(child) > 0 and child[0] == "device"]
                    
         vbds_sxp = map(lambda x: x[1], [device for device in devices
-                                        if device[1][0] == "vbd"])
+                                        if device[1][0] in ("vbd", "tap")])
 
         vifs_sxp = map(lambda x: x[1], [device for device in devices
                                         if device[1][0] == "vif"])